package com.qipay.mapper;

import com.qipay.baas.model.ApiType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;

import java.util.List;
@Mapper
public interface ApiTypeMapper extends com.qipay.baas.mapper.ApiTypeMapper {
    @Select({
            "select",
            "id, `name`",
            "from api_type"
    })
    @Results({
            @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
            @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR)
    })
    List<ApiType> selectAll();
}
